import wordcloud

# from scipy.misc import imread
c = wordcloud.WordCloud()
c.generate("WordCloud by Python")
c.to_file("wordcloud_by_python.png")

w = wordcloud.WordCloud()
w.generate('''How many football association presidents have been changed by time? Did you change it? Change the soup
 instead of dressing ah! Camacho also has reason to say, what team do I take, I take the Spanish team. Who are you? 
 You ask me to take it! What level is Chinese football at now? Only such a few people, you Zhao Peng what are playing 
 in the central defender, can he play? Can't kick. It can't, you know? It's about losing to Vietnam. Thailand lost to
  Vietnam, then to Myanmar, and no one lost next. Oh, thank goodness! As I've said, you don't have a good foundation 
  in itself. Can you promise me that he can win such a crucial (World preliminary) race in 2017 or 2016? Be pragmatic! 
  I advise you to understand your own tactics, the concept of football first! Small high belt of pretty good, you put 
  him to change what to do, you tell me! You lost 1 to 5 in Hefei, you would tell me how to explain it? I don't want my 
  face.''')
# w = wordcloud.WordCloud(width=600, height=400, min_font_size=10, max_font_size=20, font_step=2, font_path="msyh.ttc",
# max_words=20, background_color="white")
# w = wordcloud.WordCloud(stop_words={"脸"})
w.to_file("脸都不要了.png")
# mk = imread("pic.png")
# w = wordcloud.WordCloud(mask=mk)
